//
//  headerView.swift
//  fho
//
//  Created by 郭颢源 on 2021/4/20.
//

import UIKit

class headerView: UICollectionReusableView {
    override var layer: CALayer {
        let layer = super.layer
        layer.zPosition = -5 // make the header appear below the collection view scroll bar
        return layer
    }
    var label:UILabel!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.label = UILabel()
        self.addSubview(self.label)
        label.snp.makeConstraints { (make) in
            make.edges.equalToSuperview().inset(UIEdgeInsets(top: 0, left: 10, bottom: 0, right: -10))
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    
}
